import com.alibaba.excel.EasyExcel;
import org.junit.Test;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;


public class testExcel {

    public static void main(String[] args) {



    }
    @Test
    public void test(){

        System.out.println("ljljl");
        String fileName = "";
        File file = new File("C:\\Users\\wtp23\\Desktop\\3.xlsx");
        EasyExcel.read(file,ReadDemoData.class,new ReadDemoDataListener()).sheet().doRead();
        //EasyExcel.read(file,ReadDemoData.class,new PageReadListener<>()).sheet().doRead();
    }

    //根据文件名称，获取Excel目录地址
    private String getExcelUrl(String docName){
        return this.getClass().getClassLoader().getResource("").getPath()  + docName;
    }

}
